/**
 * Copyright 2009, O. Menéndez (omenen@gmail.com)
 * 
 * This file is part of SWTLayoutTest.
 * 
 * SWTLayoutTest is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 * 
 * SWTLayoutTest is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the iimplied warranty of
 * MERCHANTABILITY or FITENSS FOR A PARTICULAR PURPIOSE. See the GNU General
 * Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * SWTLayoutTest. If not, see <http://www.gnu.org/licenses/>
 */
package com.googlecode.swtlayouttest;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		layout.setFixed(true);
		
		layout.addStandaloneView(View.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
	}

}
